package com.aic.aicdetactor.common;

public class Constants {

	public final static byte CMD_Type_CaiJi=(byte) 0xD1;
	public final static byte CMD_Type_ReadSensorParams=(byte) 0xD2;
	public final static byte CMD_Type_CaiJiZhuanSu=(byte) 0xD3;
	public final static byte CMD_Type_SetSensorName=(byte) 0xD4;
	public final static byte CMD_Type_SetSensorParams=(byte) 0xD5;
	public final static byte CMD_Type_GetTemper=(byte) 0xD6;
	public final static byte CMD_Type_GetCharge=(byte) 0xD7;
	
	public final static byte Sensor_AX_Type_One=0x01;
	public final static byte Sensor_AX_Type_Two=0x02;
	public final static byte Sensor_AX_Type_Thress=0x03;

	public final static byte CMD_Sensor_Type_JiaSuDu=0x01;
	public final static byte CMD_Sensor_Type_SuDu=0x02;
	public final static byte CMD_Sensor_Type_WeiYi=0x03;
	public final static byte CMD_Sensor_Type_All=0x04;
	
	public final static String BLEAddress="BLEAddress";
	public final static String BLEXML="BLEXML";
	
	public final static int Start=0;
	public final static int  Finish=1;
	public final static int  Success=2;
	public final static int Failed=3;
	public final static int notConnect=4;
	public final static int connected=5;
	public final static int disConnected=6;
	
	public final static String VibrationHead="7d7d7d7d";
	public final static String OtherParaHead="7d14d2";
	public final static String ShaftsHead="7d14d3";
	public final static String TemperHead ="7d14d6";
	public final static String ChargeHead="7d14d7";
	public final static int EveryPackageLen= 20;
	public final static int EveryPackageDelay= 10; //ms
	
	
	public final static int Error_HeaderUnmatch = 1;
	public final static int Error_CRCUnmatch = 2;
	public final static int Error_LengthUnmatch = 3;
	public final static int Error_CommandUnmatch = 4;
	public final static int Error_OtherUnmatch = 5;
	
	public static final int HANDLER_MEASUREMENT_STARTED = 10001;
	public static final int HANDLER_IOCONTROL = 10002;
	public static final int HANDLER_IOCONTROL_SETNAME= 10003;
	public static final int HANDLER_REWRITE_CALIBRATION_CURVE= 10004;//2016-11-09 liuhg添加
	public static final int HANDLER_BLUETOOTH_PAUSED=10005;//2016-11-09 liuhg添加
	public static final int HANDLER_CALIBRATION_CURVE_ERROR=10006;//2016-11-09 liuhg添加
	public static final int HANDLER_BLUETOOTH_MEASURE_STOP=10007;//2016-11-09 liuhg添加
	public static final int HANDLER_READY_TO_REWRITE_CALIBRATION=10008;//2016-11-09 liuhg添加
	public static final int HANDLER_READ_CALIBRATION_CURVE=10009;//2016-11-09 liuhg添加
	public static final int HANDLER_CHECK_CALIBRATION_CURVE=10010;//2016-11-09 liuhg添加
}
